package com.gaoda.booksystem.sysService;


import com.gaoda.booksystem.entity.Book;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SysBookService {

    //根据书的编号查找书籍
    Book findByBookNum(int bookNumber);

    //模糊查询 + 分页
    List<Book> queryBooks(String bookName, String bookPublishers, String bookType, int currentPage, int pageCount);

    //获得总页数
    int getTotalPage(int pageCount, String bookName, String bookPublishers, String bookType);

    //删除书籍
    int deleteBookByBookNum(int bookNumber);

    //添加书籍
    int addBook(Book book);

    //修改书籍信息
    int updateBook(Book book);

    //获取书籍最大编号
    int findBookId();

    //导出书籍信息
    List<Book> bookList();

}
